Cleaned up some useless junk files, and added some basic structure.
Moved the database stuff to the proper location.