Db_url null check bug fix