Changed DB for config variables, various fixes, getting close to finishing authentication