I implemented the query function

I implemented the query function into my Database.php so it'll be more cleaner and easier to create a query.