corrected bug in SQL statement
fixed documentation for store