Add migrations and configure database.