WIP server.py CLEANING AND ADDING update_db() function.
WIP server.py CLEANING AND ADDING update_db() function.