Copy Z's .gitignore
Move db interaction into separate module