Improve database connection handling in Selenium tests

- The connection is always there, so no need to verify it
- Disconnect from database at the end of test

Signed-off-by: Michal Čihař <michal@cihar.com>