unable to write to a sqlite database with docker
turns out this was not a docker specific problem, i was getting the readonly database error.
even if the database has full write permissions, the directory also needs to have write permissions or it gives this error
so changing the
chmod 777 db fixed this issue