Updated database model (renamed ruleset to rule_set)
Added first database access code, updated submodules