resolved the NULL issue..on empty values in db
fixed bug on selectFromTable function

wrong parsing of parameters into the function