cannot load $type from table $tablename by username: Unknown column 'username' in 'where clause'