Implementation of MySQL database adapter for livedb