fix bug database