add read_only flag for spatialite4.x