why is this function? what is it's point? the database already does the coercion for you (this is postgresql, not mysql)