before enable database