Moves database calls ($db) into the model for forms and eventregistration making it easier in the future to deal with forms database tables, also removed unneeded $db param in dumpDatabase & restoreDatabase methods