schemas/functions.sql: Added indexes on all relational function parameters since the unique index will not be used for lookups
schemas/functions.sql: Added indexes on all relational function parameters since the unique index will not be used for lookups