Simplified DB creation code