Creates the tables in the database