Remove commented alternative sql query method