fixed typos in sql code
fixed typos in sql code
implemeted database functions for all SOAP methods except the authentication methods. Each SOAP method (besides authenticate and register) should now return real data and work properly.