Fixed #46 and #49: get_db_prep_value() returns None for badly-formatted UUIDs, and uniformly returns hex representation