optimize check string
correct database priority column type, integer for sorting