Update db.php

updated sum method to operator to allow for more then just sum