Attaching to config file in order to reach database