fix instantiate Database class