database configuration & sample