solved db locking probelm by adding permissions to the server R security handler -RAppArmor