prep for database