When connection to read-only db fails try to connect to write-master, but only if it is defined
Add posibility to use different database for virtuser queries