Add database passing