Cleaned up, created database tables

Foreign keys syntax still off, needs a little help