fixed database drop for javascript tests