goddamnit hg just make table_type an actual type and call new table_type(user.loc)