remove / (slash) from DB URL
make client disconnect after query and change connection state