Fixed alias name to work as expected even if tableName is specified with db name (e.g. public.members)