Add repl history to gitignore
Add a bunch of DB functions