Added more specific SQL queries and associated methods