Fix typesdb to handle types.db with tabs

Fix #2