created implementation for MySQL database