db connection and testing fetch