Fixed Selection of tables from wrong mysql db