need to pay attention to db max lengths