db setup and migration scripts