Update db api test
Fixing .py in .gitignore