Added mysql support to server. API implementation for client