Fixed all db_tests errors less 1
Better indentation and tabulation
Fixed error using actual db_manager implementation