Seperate database name and host from URL
Use config setting for database name and host