Refactored MySQL and SQLite Pages