Triggers now moved to database.rb, this will be deleted
small updates
Added database functionality, triggers and commands will be stored in here (I think)