Resolve issues with SqLite