updated check_url logic, moved repetitive database config and connection settings into config.py