Querying the database using Tinker