Modify mainApiController to fix potential SQL injection
Modify mainApiController to fix potential SQL injection

mainApiController now has a changed called to where which uses the key
as a third parameter, which is SQL injection safe.

MarkUsProject/Markus,benjaminvialle/Markus,MarkUsProject/Markus,MarkUsProject/Markus,MarkUsProject/Markus,MarkUsProject/Markus,benjaminvialle/Markus,benjaminvialle/Markus,benjaminvialle/Markus,MarkUsProject/Markus,MarkUsProject/Markus,benjaminvialle/Markus,MarkUsProject/Markus,benjaminvialle/Markus,benjaminvialle/Markus