Server Config Files

Cleaned up the code and added some basic config file management into it so that the main server.py code doesnt have to change in order to point to a different db.