Add store sql functions