Fix establishConnection()

In establishConnection() you forgot to select correct DB after connecting