Replaced sqlite with PDO
Added more options to config.php
Cleaned up several issues