adding docs/ to .gitignore, making static factory methods of DB class static