Fixing case of database object