Fixed the connection handling - some modules would want to run cachedb type ops in the mod init
Fixed the DB schema & increased version - the keyname must be a primary key for the counter ops to properly work
(cherry picked from commit f1fec17d012a54790ce9be47d20cd52daf5a1cbe)