Updated for database based config grabbing
Formatted the old php-login classes