Database functions started

still need to make the php auto-create the /db folder on init.
Merge branch 'master' of https://github.com/CodeZombie/telegraph