Fix temporary database objects