settings.py add mysql
update settings
add error handling