Updated database

Created a few tables, the primary keys as well as relationships between
tables.