fix types.db to not blindly use DERIVE