Update .gitignore for dir renaming
Add function to create db
Add function to lock a file
Return lock period from locking function