delete $ in php files, edit sqlite queries