Fixed sqlite issue for deployment