Sets up database URI for deployment