if values is undefined or null use original query function
handle object input for prepared statements
Merge branch 'prepstmt'