Update server.py

Added query to insert/update account metadata -- similar queries for other types to follow