Fix setting database adapter for postgresql