redid datatypes
fixed db