Create Tables

- Added the create tables code into the application so the tables are
created the first time the application is run
- Fixed an issue with the registration process