added check and clean for database
Merge branch 'master' of github.com:mikesteele/HaikuEngine