Store metr stats in database