Added functionality of prepared SQL statements

Refer to the function's comments to see how to use the query()
function.