Database setup working

The database structure is now properly set up, the administrator panel
is under development.