support apps without database
Merge pull request #5 from surg/master

support apps without database