Installer and DB updates

Added a basic installer.
Updated the database to create tables based on a prefix.
Cleaned up lots of stuff