The rules and so on works now. Will start working on database.