[BUGFIX] Fix database query in StaticRecordCollection