Git pre commit hook to export database