Fix error logging error reading types_db