added type to db