db connection and sql dump