Adds tests script and cleans models
Adds decorator which gives the class a create method which autoinserts object in database (rails style)
Adds test module for database
Fixes bug where tests would hang because the database could not be reset due to unfinished transactions
Fixes bug where tests would hang because the database could not be reset due to unfinished transactions
Before big change
Removes order to transaction relation because it is not necessary and complicates the database needlessly