Made database layout slightly more flexible (added appropriate ON UPDATE/ON DELETE rules)
Many changes. Implemented tests, implemented DAL (Database). Added Class for TestData (currently not really working :/)