API - Basic API calls

This function should run addslashes on every passed argument. Also you need to make this configurable just like queryDB (by default the function applies to every argument but use can say that no need to apply it)