Implemented MySQL wrapper for frame extraction and result writing.