changed database events to signals