correcting db locations