App can't find sqlite database after packing


I created an app to work offline so i choosen sqlite to be the offline db. In development mode i have no problems, but when i package my app i am noticed with the error “can’t find file or directory db/…sqlite”

to reproduce the error follows the link bellow:

Can't write on sqlite file after package my app