Configuring the database settings and doing migration