Added insert quats and centroids into the database