fixed bugs in db injection files