From what im understanding you are calling dbase->query()
Now PHP is looking for the function query() in your Dbase class, which isnt going to work since you simply want a PHP query function.
Im still thinking of how exactly to do what you want to do... a bit confused but understand whats happening. I hope i have sparked your mind on what is happening in your code. Let me think a bit more 🙂
Derek