Isolate DB  & attempt at adding posts.

Adding posts is currently broken.  Isolated DB to seperate file.