This is a way of getting users from a database for pyramid