Fix get conditions hook on database driver
Fix menu migration from J! 1.5