db sript fixed