In process of writing database queries for profile