Fixed issue with DB value in the connection not being used