Add utility method for dealing with longs in the database