You can checkout the file from the commit where it still exists. Here's how to do it.
git checkout -- db
# Example:
git checkout 6936142 -- db
# This also works, but if you have a branch named the same as the file or path,
# it will throw an error.
git checkout 6936142 db