Remove unused db class require
Minor change in logout script
New tools class added to gallery and get columns in the new way
Made database into a class once again
Added first function to tools class, needs improvements
Use new db class in login
Use new db class in register
Code cleanup in home.php
Fixed logout so it used the new page structure