Added getProducts to Database. Also changed how callbacks work in Database