Add database on ready event, update tests