fix
make the type a db table