adding MysqliDb class

updating login script, config, and footer to work with new class