updated server.py to create dir if not available

fix #2 
also do this check first anyway (not inside the `if not os.path.exists(config.sqlite_db):`)