Move general query

The general query is moved to the table class.
Removed method getEntries

We just call the query method to get entries
Update to using competitions DB class