added mysqli data type value when getting fields for query