Main database tables, this would close issue #1

These are the main database tables.