added migrations and database config