Fixed models. Added setup script.

* Fixed ORM models.
* Added setup script to create the tables and add the admin user.
* Changed tabs to spaces.