Fixes bugs in SQL install and moves auth token verification to Auth model.