db rules and loaders