call store_item on flush
change db prepare
use properties for db connect parameters