More webapp stuff

SQL for database tables, classes for more stuff.
Will not work without MySQL. Trying to implement HSQLDB, but it'll take
time.