Setting up dynamic database connection for the app runtime