Added getProducts to Database. Also changed how callbacks work in Database
merged in database changes