changed create view with create or replace view, the second didnt work on sqlite