Provide convertion methods between database values and PHP values