add update function to datalayer to build update queries based on passed in fields