adds various methods for users, messaages and queries