updated db location - made dynamic