Types form now creates type in database, and types list now accurately displays current types