Database parts of authorization