Configured db connection.
Fixed migrations.