db connection and sample config