added commit hooks for local db