Fixed sqlite error, Fixed page header, moved config loading to utils, and fix logging bug