Added more DB functions
Updated .gitignore
Added DB prepare function