Fixes for database by supplying custom _id.