"Invalid Tables" error when querying a ContentProvider

Secondly I'm really new in android and haven't completely grasped the way it works (which seems to be the case for the people who wrote most of the tutorials I could find online sadly so a good quick and dirty tutorial would also be great).
Moving on with the problem I'll try to post only relevant code, if I skip something please let me know.

As mentioned in the title the error message I'm currently getting is Invalid tables when executing the query but I've been through a hell of working arround other errors to get here and I'm not sure if I solved them or just walked arround them just to find them again in the future so any error correcting would be greatly appreciated.

As mentioned in the title the error message I'm currently getting is
Invalid tables when executing the query but I've been through a hell
of working arround other errors to get here and I'm not sure if I
solved them[...]

It's normal that you get that exception because you pass null as the table name when you do the sqlite query in the query method of the ContentProvider, this line:

The first parameter is the table name and you must supply a valid table name for the query to be successful. So based on the Uri you get choose the proper table and assign a valid table name. Also, what is the purpose of using a SQLiteQueryBuilder in the same query method if you're going to ignore it completely and simply query the database directly?