Modified everything so that it can now use SQLite instead of MySQL

but there seems to be something wrong still, no results. need to check into that