moved base/python/util to server/python/util to fix mysqldb import work-around
update shebang to explicitly use python2
scope error with moving util to qraat.srv
reformat try-except block in get_db()