Create SQL functions and views in right schema (fixes #1343)
Merge pull request #1344 from makinacorpus/sql_create_in_right_schema

Create SQL functions and views in right schema (fixes #1343)