updated to use remote sqlite db