Change DB strategy

Move db location and change the db strategy.