use datatype from db