i have been trying to run the select method from my database on query but it gives me this error my database class