Core: allow having more then one DB connection, and just remove some unused stuff

Signed-off-by: https://github.com/Infinity-420 <iceis2@hotmail.com>