Fixed opening multiple DB connections. and Added a request queue for pending requests