interface for storing data to mysql
fixed sql query
supports parameter parsing. updated logger.