Refactor: now db host, port, user, password in their own variables.