small changes for database