Moved connection into separate file in root dir