Added getTables() function
Added table dropdown