Added schema_reload() function

This function is needed at the start of a transaction, to ensure we're using
the most recent schema.

Signed-off-by: Morten Hustveit <morten.hustveit@gmail.com>