Added database key duplication handling. Corrected errors (url encoding, keywords splitting, etc.) in retrieving results.