Refactor - Consolidate MySql operations.