Fix query to retreived list of tables, owner selection was set two time.