hook for database support