simple class to iterate over a database and modify columns by applying a custom PHP function