First pass at framework for custom mysql