Refactor backendds and connection logic.
Basic connection pooling