configures db