Added db_value_from_text2() for setting values with size of text. Added more parameter checks in db_value.