Added preliminary database code. Added *.*~ temp files to gitignore