Fixed the correlations code for an already correct DB as specified in #14.