Create function into database on keycloak startup

Hello, community!

I have a PostgreSQL function to return users with exact table format and parameter filter.
Is it possible to apply it on keycloak startup?

Thanks for any help!