add tables select functionality; add initial page with connection form; refactored a bit