Added if-else for db url