modified the type that the database need