Open and close sqlite connections before and after each operations (for
release write locks and enable action on sqlite file during Play
running) for #2