add mutex lock for sqlte db