New db_manager structure to has just 1 session at the same time
new tests for the new structrue of db_manager