updates to db functions
fix makePath function