Add database config sample
Fix compass issue