Updated database tables

Updated the tables to a semi-finished state. All the tables are
contained in one sql file.