Added DB stuff from Fuel, started db unit tests