Attempt to solve sqlite problem