CONNECTING TO THE DATABASE