add the db persistence to the endpoint
Merge pull request #39 from bhumphrey/endpoint-db

add the db persistence to the endpoint